package com.lgx.right.dao;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.right.entity.Resource;

public interface IResourceDao {

	public Resource createResource(Resource resource)throws DataException;
	public Resource updateResource(Resource resource)throws DataException;
	public void deleteResource(Resource resource)throws DataException;
	public void deleteResource(long id)throws DataException;
	public Resource findResourceById(long id);
	
	public List<Resource> findResourceList(String sql);
}
